package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SmartDeviceManagementMapper;
import com.ruoyi.system.domain.SmartDeviceManagement;
import com.ruoyi.system.service.ISmartDeviceManagementService;

/**
 * 智能设备管理Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-09
 */
@Service
public class SmartDeviceManagementServiceImpl implements ISmartDeviceManagementService
{
    @Autowired
    private SmartDeviceManagementMapper smartDeviceManagementMapper;

    /**
     * 通过id查询智能设备管理
     *
     * @param id 智能设备管理主键
     * @return 智能设备管理
     */
    @Override
    public SmartDeviceManagement selectSmartDeviceManagementById(Long id)
    {
        return smartDeviceManagementMapper.selectSmartDeviceManagementById(id);
    }

    /**
     * 查询智能设备管理列表
     *
     * @param storeName 门店名称
     * @return 智能设备管理
     */
    @Override
    public List<SmartDeviceManagement> selectSmartDeviceManagementListByName(String storeName)
    {
        return smartDeviceManagementMapper.selectSmartDeviceManagementListByName(storeName);
    }

    /**
     * 新增智能设备管理
     *
     * @param smartDeviceManagement 智能设备管理
     * @return 结果
     */
    @Override
    public int insertSmartDeviceManagement(SmartDeviceManagement smartDeviceManagement)
    {
        return smartDeviceManagementMapper.insertSmartDeviceManagement(smartDeviceManagement);
    }

    /**
     * 修改智能设备管理
     *
     * @param smartDeviceManagement 智能设备管理
     * @return 结果
     */
    @Override
    public int updateSmartDeviceManagement(SmartDeviceManagement smartDeviceManagement)
    {
        return smartDeviceManagementMapper.updateSmartDeviceManagement(smartDeviceManagement);
    }

    /**
     * 通过id批量删除智能设备管理信息
     *
     * @param ids 需要删除的智能设备管理主键
     * @return 结果
     */
    @Override
    public int deleteSmartDeviceManagementByIds(Long[] ids)
    {
        return smartDeviceManagementMapper.deleteSmartDeviceManagementByIds(ids);
    }

    /**
     * 通过id删除智能设备管理信息
     *
     * @param id 智能设备管理主键
     * @return 结果
     */
    @Override
    public int deleteSmartDeviceManagementById(Long id)
    {
        return smartDeviceManagementMapper.deleteSmartDeviceManagementById(id);
    }
}
